﻿@model KKU.RBSFPP.Shared.DAC.Product

@{
    ViewBag.Title = "Delete";
}

@Html.Partial("_AccountManagement")

<h3><span class="label label-success"><span class="glyphicon glyphicon-trash"></span> ลบรายการของเก่า</span></h3>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
<fieldset>
    <legend></legend>

    <div class="panel panel-default">
 <div class="panel-heading">ชื่อ</div>
  <div class="panel-body">
    <div class="display-field">
        @Html.DisplayFor(model => model.Name)
    </div>
  </div>
</div>

   
      <div class="panel panel-default">
 <div class="panel-heading">ประเภท</div>
  <div class="panel-body">
    <div class="display-field">
        @Html.DisplayFor(model => model.Category.Name)
    </div>
  </div>
</div>

      <div class="panel panel-default">
 <div class="panel-heading">หน่วย</div>
  <div class="panel-body">
    <div class="display-field">
        @Html.DisplayFor(model => model.ProductUnit.Name)
    </div>
  </div>
</div>

    
    <div class="panel panel-default">
 <div class="panel-heading">ราคาซื้อ-ขาย</div>
  <div class="panel-body">
    <div class="display-field">
        @Html.DisplayFor(model => model.ProductPricingPerUnit.Id)
    </div>
  </div>
</div>

    <div class="panel panel-default">
 <div class="panel-heading">สร้างเมื่อวันที่</div>
  <div class="panel-body">
    <div class="display-field">
        @Html.DisplayFor(model => model.CreateOn)
    </div>
  </div>
</div>

     @* <div class="panel panel-default">
 <div class="panel-heading">ลบเมื่อวันที่</div>
  <div class="panel-body">
    <div class="display-field">
        @Html.DisplayFor(model => model.DeleteOn)
    </div>
  </div>
</div>*@

      <table>
        <th>
            <td>
                <a href=@Url.Action("Index", "Product") class="btn btn-danger"><span class="glyphicon glyphicon-remove-circle"></span> ยกเลิก</a>
            </td>
            <td>
                <input class="btn btn-success" type="submit" value="ลบ" />
            </td>
        </th>
    </table>
    
</fieldset>
}
